package com.ruoyi.oper.service.impl;

import com.ruoyi.oper.domain.OperChima;
import com.ruoyi.oper.domain.OperProduct;
import com.ruoyi.oper.domain.OperProitems;
import com.ruoyi.oper.domain.OperYanse;
import com.ruoyi.oper.mapper.OperProductMapper;
import com.ruoyi.oper.service.IOperProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OperProductServiceImpl implements IOperProductService {
    @Autowired
    private OperProductMapper operProductMapper;
    @Override
    public List<OperProduct> selectProductList(OperProduct operProduct) {
        return operProductMapper.selectProductList(operProduct);
    }

    @Override
    public int insertProduct(OperProduct operProduct) {
        return operProductMapper.insertProduct(operProduct);
    }

    @Override
    public int insertProitems(OperProitems operProitems) {
        return operProductMapper.insertProitems(operProitems);
    }

    @Override
    public List<OperYanse> getYanseList(Integer productId) {
        return operProductMapper.getYanseList(productId);
    }

    @Override
    public OperProduct selectProductById(Integer productId) {
        return operProductMapper.selectProductById(productId);
    }

    @Override
    public List<OperChima> getChimaList(OperProitems operProitems) {
        return operProductMapper.getChimaList(operProitems);
    }

    @Override
    public OperYanse selectYanseById(Integer id) {
        return operProductMapper.selectYanseById(id);
    }

    @Override
    public OperChima selectChimaById(Integer id) {
        return operProductMapper.selectChimaById(id);
    }

    @Override
    public int updateProitemsExample(OperProitems operProitems) {
        return operProductMapper.updateProitemsExample(operProitems);
    }

    @Override
    public List<OperProitems> selectOperProitemsList(OperProitems operProitems) {
        return operProductMapper.selectOperProitemsList(operProitems);
    }
}
